class GuestUer
    def initialize(session)
        @session = session
    end

    def name
        "Anonymous"
    end

    def authenticated?
        false
    end

    def has_role?(role)
        false
    end

    def visible_listings
        listing.publicly_visible
    end

    def last_seen_online(time)
        @time = time
    end

    def cart
        SessionCart.new(@session)
    end
end